package com.bp.hearthealth.pulse.lnapps.bp_db.bp_bloodpressure

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey


/**
 * 0：Hypotensive
 * 1：Normal
 * 2：Elevated
 * 3：Hypertension - Stage 1
 * 4：Hypertension - Stage 2
 * 5：Hypertension Crisis
 */
@Entity(tableName = "blood_pressure_data_surface")
data class BloodPressureData(
//    @PrimaryKey(autoGenerate = true) val id: Long = 0,
    @PrimaryKey val id: String = "",
    var note: String = "",
    var timePeriod: Long,
    var date: Long,
    @ColumnInfo(name = "userId") val userId: String,
    var degree: Int,
    var systolic: Double,
    var diastolic: Double,
    var pulse: Double,
    var stateType: Int,
    val unlocked: Boolean = false
) {
    override fun toString(): String {
        return "BloodPressureData(id='$id', note='$note', timePeriod=$timePeriod, date=$date, userId='$userId', degree=$degree, systolic=$systolic, diastolic=$diastolic, pulse=$pulse, stateType=$stateType, unlocked=$unlocked)"
    }
}